package dgut.haitaobao.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "product",autoResultMap = true)
public class Product {
    @TableId(value = "product_id",type = IdType.INPUT)
    private String productId;

    @TableField(value = "product_name")
    private String productName;

    @TableField(value = "category_id")
    private Integer categoryId;

    @TableField(value = "root_category_id")
    private Integer rootCategoryId;

    @TableField(value = "sold_num")
    private Integer soldNum;

    @TableField(value = "product_status")
    private Integer productStatus;

    @TableField(value = "content")
    private String content;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_time")
    private Date updateTime;
}
